package cn.com.ege.mvc.service.impl.business;

import java.io.Serializable;

import cn.com.ege.mvc.exception.BusinessException;
import cn.com.ege.mvc.model.business.OrderList;
import cn.com.ege.mvc.service.BaseService;

public class OrderListService extends BaseService<OrderList> implements Serializable{
	public void save(OrderList orderList) throws BusinessException{
		if (null != orderList && null != orderList.getOrder_id()) {
			if(null != orderList.getId() && 0 != orderList.getId()){
				update(orderList);
			}else{
				add(orderList);
			}
		}else {
			throw new BusinessException("订单ID不能为空!");
		}
	}
}
